{% extends 'base_main.html' %}

{% load static %}

{% block ext_css %}
    {{ block.super }}

    <link rel="stylesheet" href="{% static 'axf/main/mine/css/mine.css' %}">
{% endblock %}

{% block title %}
    {{ block.super }}
    我的
{% endblock %}

{% block ext_js %}
    {{ block.supper }}
    <script type="text/javascript" src="{% static 'axf/main/mine/js/mine.js' %}"></script>
{% endblock %}

{% block content %}
    {{ block.super }}

    <div id="mine">
        <div class="fixed">
            {# 头像#}
            {#            {{ user }}  默认值：AnonymousUser   #}
            {% if user1 %}
                <span>
                    <img src="/static/upload/{{ user1.icon }}" alt="">
                </span>
            {% else %}
                <span class="glyphicon glyphicon-user"></span>
            {% endif %}

            {% if user1 %}
                {# pointer-events:none 禁用鼠标点击#}
                {#  <p id="login" style="pointer-events:none">{{ user1.name }}</p>#}
                <p id="login">{{ user1.name }}</p>
            {% else %}
                <p id="login">登录</p>
            {% endif %}

            <p>
                <span class="glyphicon glyphicon-fire"></span>
                <span>等级</span>
            </p>

            {% if user1 %}
                <div id="regis"></div>
            {% else %}
                <div id="regis">注册</div>
            {% endif %}


            <p>
                <span class="glyphicon glyphicon-heart">
                    <a href="#" style="color: white">商品收藏</a>
                </span>

            </p>

        </div>

        <div class="mine">
            <p>
                <span>全部订单</span>
                <a href="#">全部订单></a>
            </p>

            <div id="nav">
                <ul>
                    <li>
                        <dl>
                            <dt>
                                <span class="glyphicon glyphicon-usd"></span>
                            </dt>
                            <dd>待付款</dd>
                        </dl>
                    </li>
                    <li>
                        <dl>
                            <dt>
                                <span class="glyphicon glyphicon-envelope"></span>
                            </dt>
                            <dd>待收货</dd>
                        </dl>
                    </li>
                    <li>
                        <dl>
                            <dt>
                                <span class="glyphicon glyphicon-pencil"></span>
                            </dt>
                            <dd>待评价</dd>
                        </dl>
                    </li>
                    <li>
                        <dl>
                            <dt>
                                <span class="glyphicon glyphicon-retweet"></span>
                            </dt>
                            <dd>退款</dd>
                        </dl>
                    </li>
                </ul>
            </div>

            <menu>
                <ul>
                    <li>
                        <dl>
                            <dt>
                                <span class="glyphicon glyphicon-bullhorn"></span>
                            </dt>
                            <dd>积分商城</dd>
                        </dl>
                    </li>
                    <li>
                        <dl>
                            <dt>
                                <span class="glyphicon glyphicon-credit-card"></span>
                            </dt>
                            <dd>优惠券</dd>
                        </dl>
                    </li>
                    <li>
                        <dl>
                            <dt>
                                <span class="glyphicon glyphicon-import"></span>
                            </dt>
                            <dd>收货地址</dd>
                        </dl>
                    </li>
                    <li>
                        <dl>
                            <dt>
                                <span class="glyphicon glyphicon-phone-alt"></span>
                            </dt>
                            <dd>客户反馈</dd>
                        </dl>
                    </li>
                    <li>
                        <dl>
                            <dt>
                                <span class="glyphicon glyphicon-certificate"></span>
                            </dt>
                            <dd>关于我们</dd>
                        </dl>
                    </li>
                </ul>
            </menu>

            {% if user1 %}
                <p>
                    {# 登录之后才有退出#}
                    <a href="{% url 'axfuser:logout' %}">退出</a>
                </p>
            {% endif %}

        </div>

    </div>
{% endblock %}
